﻿@model Umbraco.Cms.Web.Model.BackOffice.TinyMCE.InsertMacro.InsertMacroModel
@using Umbraco.Framework.Persistence.Model.Constants;
@{
    Layout = "../Shared/_ModalLayout.cshtml";

    Html
        .RequiresJs("Umbraco.Editors/Dialogs/InsertMacroEditor/InsertMacro.js", "Scripts");
}
@section Head {
    <style type="text/css">
        html, body, .panel, .progress-bar { width: 100%; height: 100%; overflow: hidden; }
        .progress-bar { background-position: 49% 49%; }
    </style>
    <script type="text/javascript">
        (function ($) {
            $(document).ready(function () {
                Umbraco.Editors.InsertMacroEditor.InsertMacro.getInstance().init({
                    macroAlias: "@Model.MacroAlias",
                    macroParams: @Html.ToJsonString(Model.MacroParameters, PropertyNamesCaseType.CaseInsensitive)
                });
            });
        })(jQuery);
    </script>
}

<div class="progress-bar">&nbsp;</div>